﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DuckGame
{
    public class MallardDuck:DuckBase
    {

        public override string Display()
        {
            return "我是一只野鸭";
        }

        public MallardDuck()
        {
            //base继承父类的方法和属性
            base.FlyBehavior = new FlyWithWing();
            base.QuackBehavior = new IQuack.Quack1();
        }
    }
}
